//
//  ProductViewController.h
//  freeLance
//
//  Created by Igor Karpenko on 3/27/13.
//  Copyright (c) 2013 Mozi Development. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ProductDataSource.h"
#import "CDProducts.h"
#import "PhotoViewController.h"

@class ProductViewController;

@protocol ProductViewControllerProtocol <NSObject>

-(void)productViewControllerDidColose:(ProductViewController *)sender;

@end


@interface ProductViewController : UIViewController <UIScrollViewDelegate, PhotoViewControllerDelegate>

@property (strong, nonatomic) IBOutlet UIPageControl *pageControll;
@property (strong, nonatomic) IBOutlet UIButton *closeButton;
@property (strong, nonatomic) IBOutlet UIButton *openSiteButton;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;
@property (strong, nonatomic) IBOutlet UIView *conteiner;
@property (strong, nonatomic) IBOutlet PhotoViewController *photoViewController;

@property (strong, nonatomic) ProductDataSource *dataSource;
@property (strong, nonatomic) CDProducts *product;
@property (nonatomic, assign) id<ProductViewControllerProtocol> delegate;

-(id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil product:(CDProducts *)product;
- (IBAction)openSiteButtonTapped:(id)sender;
- (IBAction)closeButtonTapped:(id)sender;

@end
